
P_ROOT      = ./..
OBJDIR      = $(P_ROOT)/../test
SRCDIR      = $(P_ROOT)/../test/mct_os_test

include $(P_ROOT)/../Makefile.env.common

OBJS = $(OBJDIR)/mct_os_test.o

TAGO=$(P_ROOT)/../lib/mct_os_test

CFLAGS += -fPIC
CXXFLAGS += $(OPTIMIZER) $(PUBLIC_INCLUDES) $(PUBLIC_LIBS) \
	         -DUNIX -DLINUX -Dlinux -fPIC -g

####################################################################
# Target
all:	$(OBJS)
	$(CXX) $(OBJS) $(CXXFLAGS) -lACE -lmct_os -llog4cpp -lmct_public -o $(TAGO)
	
$(OBJDIR)/%.o	    :	$(SRCDIR)/%.cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $<

clean:
	rm -f $(OBJS)
	rm -f $(TAGO)